import Vue from 'vue'
import Router from 'vue-router'
import Index from './views/index.vue'
import Login from './views/login.vue'
import Board from './views/board.vue'
import Write from './views/write.vue'
import SetUp from './views/setUp.vue'
import MineFollow from './views/mineFollow.vue'
import ArticleDetail from './views/articleDetail.vue'
import MineBlog from './views/mineBlog.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/index',
      name: 'index',
      component: Index
    },
    {
      path: '/board',
      name: 'board',
      component: Board
    },
    {
      path: '/setUp',
      name: 'setUp',
      component: SetUp
    },
    {
      path: '/write',
      name: 'write',
      component: Write
    },
    {
      path: '/mineFollow',
      name: 'mineFollow',
      component: MineFollow
    },
    {
      path: '/articleDetail',
      name: 'articleDetail',
      component: ArticleDetail 
    },
    {
      path: '/mineBlog',
      name: 'mineBlog',
      component: MineBlog 
    }
  ]
})
